package com.teama4.shop.service;

import com.teama4.shop.domain.CommodityCollect;
import com.teama4.shop.domain.CommodityCollectExample;
import com.teama4.shop.mapper.CommodityCollectMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class CommodityCollectServiceImpl implements CommodityCollectService {
    @Autowired
    private CommodityCollectMapper commodityCollectMapper;
    @Override
    public long countByExample(CommodityCollectExample example) {
        return commodityCollectMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(CommodityCollectExample example) {
        return commodityCollectMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return commodityCollectMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(CommodityCollect record) {
        return commodityCollectMapper.insert(record);
    }

    @Override
    public int insertSelective(CommodityCollect record) {
        return commodityCollectMapper.insertSelective(record);
    }

    @Override
    public List<CommodityCollect> selectByExample(CommodityCollectExample example) {
        return commodityCollectMapper.selectByExample(example);
    }

    @Override
    public CommodityCollect selectByPrimaryKey(Integer id) {
        return commodityCollectMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(CommodityCollect record, CommodityCollectExample example) {
        return commodityCollectMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(CommodityCollect record, CommodityCollectExample example) {
        return commodityCollectMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(CommodityCollect record) {
        return commodityCollectMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CommodityCollect record) {
        return commodityCollectMapper.updateByPrimaryKey(record);
    }
}
